package edu.ahut.designpattern.demo.v2;

public class Application {
    public static void main(String[] args) {

        Circle circle=new Circle(5);
        Pillar pillar=new Pillar(circle,12);

        System.out.println(pillar.getVolume());

        Shape ellipse=new Ellipse(3,4);
        pillar.setBase(ellipse);


        System.out.println(pillar.getVolume());

    }
}
